package cn.com.nes.mybatis.agent.inventory.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
* 入库单
*/
@Data
@TableName("g_order_in")
public class GOrderIn {

    @ApiModelProperty("主键Id")
    @TableId(value = "uuid", type = IdType.INPUT)
    private String uuid;

    @ApiModelProperty("订单id")
    @TableField(value = "orderId")
    private String orderId;

    @ApiModelProperty("申请单id")
    @TableField(value = "applyId")
    private String applyId;

    @ApiModelProperty("序号")
    private Integer serial;

    @ApiModelProperty("申请类型  01-采购入库 02-退货入库")
    @TableField(value = "orderType")
    private String orderType;

    @ApiModelProperty("公司id")
    @TableField(value = "companyId")
    private String companyId;

    @ApiModelProperty("商品uuid")
    @TableField(value = "goodsUUid")
    private String goodsUUid;

    @ApiModelProperty("出入库数量")
    @TableField(value = "inoutNum")
    private BigDecimal inoutNum;

    @ApiModelProperty("备注")
    private String memo;

    @ApiModelProperty("仓库id")
    @TableField(value = "warehouseId")
    private String warehouseId;

    @ApiModelProperty("仓库名字")
    @TableField(value = "warehouseName")
    private String warehouseName;

    @ApiModelProperty("仓库保管员名字")
    @TableField(value = "warehouseKeeperID")
    private String warehouseKeeperID;

    @ApiModelProperty("入出库时间")
    @TableField(value = "warehouseTime")
    private Date warehouseTime;

    @ApiModelProperty("冲账订单uuid")
    @TableField(value = "returnUuid")
    private String returnUuid;

    @ApiModelProperty("冲账标识")
    @TableField(value = "isReturn")
    private String isReturn;

    @ApiModelProperty("是否删除")
    private Integer isdelete;

}
